import {Injectable} from '@angular/core';
import {Product, ProductService} from '../product/product.service';
import {MessageService} from '../message/message.service';

@Injectable({
  providedIn: 'root'
})
export class AnotherProductService implements ProductService {

  constructor(public message: MessageService) {
  }

  getProduct(): Product {
    this.message.log('This is a child method !');
    return new Product(2, 'iphone10', 1, 'Very Good');
  }

  getPack(): void {
  }

}
